﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GoalOrientedEdit.aspx.cs"
    Inherits="PowerWarning_GoalOrientedEdit" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>基础数据类别维护</title>
    <base target="_self" />
    <link href="../css/css.css" rel="stylesheet" type="text/css" />
    <!--#include file="../Js/KeyControl.js"-->

    <script src="../JS/calendar.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">

        function BtnSubmit() {
            var stf = form1.txtTrafficForecast.value;
            var ssf = form1.txtSetFrequency.value;
            var sca = form1.txtConsumptionAccounting.value;
            var stt = form1.txtTelecommunicationTraffic.value;
            var sea = form1.txtEnergyAccounting.value;
            var syear = form1.sltYear.value;

            if (syear == "") {
                form1.sltYear.focus();
                alert("年份不能为空！");
                return;
            }

            if (stf == "") {
                form1.txtTrafficForecast.focus();
                alert("预测业务量不能为空！");
                return;
            }

            if (sca == "") {
                form1.txtConsumptionAccounting.focus();
                alert("基站耗电占比不能为空！");
                return;
            }

            if (ssf == "") {
                form1.txtSetFrequency.focus();
                alert("载频数不能为空！");
                return;
            }


            if (stt == "") {
                form1.txtTelecommunicationTraffic.focus();
                alert("电信业务量不能为空！");
                return;
            }


            if (sea == "") {
                form1.txtEnergyAccounting.focus();
                alert("电能占综合能耗占比不能为空！");
                return;
            }


            var btnSave = window.document.getElementById("SaveData");
            if (btnSave != null)
                btnSave.click();
        }

			
    </script>

</head>
<body style="background-image: url('../images/hit_bg.gif');">
    <% 
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = 0;
        Response.CacheControl = "no-cache";
    %>
    <form id="form1" runat="server">
    <table style="width: 98%;" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr style="height: 6;">
            <td>
            </td>
        </tr>
    </table>
    <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="327AC6">
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>年份：</strong>
            </td>
            <td>
                &nbsp;<select id="sltYear" runat="server" style="width: 80px;">
                    <option value="">请选择...</option>
                    <option value="2008">2008</option>
                    <option value="2009">2009</option>
                    <option value="2010">2010</option>
                    <option value="2011">2011</option>
                    <option value="2012">2012</option>
                    <option value="2013">2013</option>
                    <option value="2014">2014</option>
                    <option value="2015">2015</option>
                </select>
                </select><font color="#ff0000">*</font>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>预测业务量：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtTrafficForecast" runat="server" CssClass="TextBox" MaxLength="50"
                    TabIndex="2"></asp:TextBox><font color="#ff0000">*</font>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>载频数：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtSetFrequency" runat="server" CssClass="TextBox" MaxLength="50"
                    TabIndex="2"></asp:TextBox><font color="#ff0000">*</font>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>基站耗电占比：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtConsumptionAccounting" CssClass="TextBox" MaxLength="50"
                    TabIndex="3" runat="server"></asp:TextBox><font color="#ff0000">*</font>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>电信业务量：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtTelecommunicationTraffic" CssClass="TextBox" MaxLength="50"
                    TabIndex="3" runat="server"></asp:TextBox><font color="#ff0000">*</font>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>电能占综合能耗占比：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtEnergyAccounting" CssClass="TextBox" MaxLength="50" TabIndex="3"
                    runat="server"></asp:TextBox><font color="#ff0000">*</font>
            </td>
        </tr>
        <tr style="height: 30; background-color: #F9F9FB">
            <td>
            </td>
            <td>
                <input id="SaveData" type="button" style="width: 0; height: 0;" class="button02"
                    runat="server" value="提交" onserverclick="SaveData_ServerClick" />
                <input type="button" id="Button1" value="提交" class="button02" onclick="BtnSubmit();" />
                <input type="button" id="Button2" value="退出" class="button02" onclick="window.close();" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
